package day20171215;


import java.io.*;
import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) throws IOException {
        Map<String,Integer> map = new HashMap<String,Integer>();

        try {
            BufferedReader reader = new BufferedReader(new FileReader("G:\\names.txt"));

            String sno = null;
            while ((sno = reader.readLine())!= null){
                map.put(sno,0);
            }

           File file = new File("G:16信本1一班Java作业一");

            File[] files = file.listFiles();
            //遍历文件

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}
